<?php
/**
 * Registration form for new character
 * 
 * @author fylmetal
 */

class registration {
	private static $instance; //singleton
	var $nick = "";
	var $pw="";
	var $gender="";
	var $orden="";
	
	private function __constructor(){
		$this->nick=$_REQUEST['nickname'];
		$this->pw=$_REQUEST['pw'];
		$this->gender=$_REQUEST['gender'];
		$this->orden=$_REQUEST['orden'];
		
	}
	
	
	public static function getInstance(){
		if(!self::$instance){
			self::$instance = new self();
		}
		return self::$instance;
	}
	
	public function showInput(){
		echo "Hi, ".$nick."you was registered with:".
		"<br>pw: ".$pw."<br>".
		"gender: ".$gender."<br>".
		"orden: ".$orden."!<br>".
		"Welcome!";
	}
	
	
}	
	
		
	
?>           